package com.abc.cloud.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.common.utils.Query;

import com.abc.cloud.dao.PermsCategoryDao;
import com.abc.cloud.entity.PermsCategoryEntity;
import com.abc.cloud.service.PermsCategoryService;


@Service("permsCategoryService")
public class PermsCategoryServiceImpl extends ServiceImpl<PermsCategoryDao, PermsCategoryEntity> implements PermsCategoryService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<PermsCategoryEntity> page = this.page(
                new Query<PermsCategoryEntity>().getPage(params),
                new QueryWrapper<PermsCategoryEntity>()
        );

        return new PageUtil(page);
    }

}